// 1.引入mongoose模块
const mongoose = require('mongoose');

// 2.创建文章集合规则
const classifySchema = new mongoose.Schema({
	name:{
        type:String,
        require:[true,'分类名不能为空']
    },
})

// 3.根据规则创建集合
const Classify = mongoose.model('Classify', classifySchema);


// 4.将集合做为模块成员进行导出
module.exports = {
	Classify
}